<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="bjui-pageContent tableContent">
    <table class="table">
        <thead>
        <tr>
            <td>投资编号</td>
            <th>借款标号</th>
            <th>名称</th>
            <th>投资本金</th>
            <th>投资利息</th>
            <th>投资奖励</th>
            <th>以还本金</th>
            <th>以还利息</th>
            <th>状态</th>
            <th>投资时间</th>
            <th>使用红包</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${borrowTenders.iterator()}" var="obj">
                <tr>
                    <td>${obj.id}</td>
                    <td>${obj.borrowInfo.id}</td>
                    <td>${obj.borrowInfo.name}</td>
                    <td><fmt:formatNumber value="${obj.investorCapital}" type="CURRENCY"/></td>
                    <td><fmt:formatNumber value="${obj.investorInterest}" type="CURRENCY"/></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div data-toggle="pagination" data-options="{total:'${borrowTenders.totalElements}',form:'#moneyLogForm',pageCurrent:${tenderLogIndex.pageCurrent},callback:pagingCallback}"></div>
</div>
<script type="text/javascript">
    function pagingCallback(pageCurrent,pageSize){
        $("#pageCurrent").val(pageCurrent);
        $("#pageSize").val(pageSize);
        $("#moneyLogForm").submit();
    }
</script>